package org.example.controller;

import org.example.entry.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.ImportResource;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA 2023.
 * Description:
 * User: homechen
 * Date: 2024-03-31
 * Time: 11:13
 */
@Controller
public class UserController {
    @Autowired
    @Qualifier(value = "user2")
    private UserInfo userInfo;

    public void doUserController() {
        System.out.println("id: " + userInfo.getId());
        System.out.println("name: " + userInfo.getName());
    }
}
